package com.thinkgem.jeesite.modules.app.entity;

import com.thinkgem.jeesite.modules.sys.entity.Area;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.thinkgem.jeesite.modules.sys.entity.User;

import java.util.List;

/**
 * Created by xiaguoqiang on 16/5/31.
 */
public class ACommunity {
    private String id = "";
    private Area area = new Area();		// 归属区域
    private String code = ""; 	// 机构编码
    private String name = ""; 	// 机构名称
    private String remarks = "";
    private String address = ""; // 联系地址
    private String zipCode = ""; // 邮政编码
    private String master = ""; 	// 负责人
    private String phone = ""; 	// 电话
    private String fax = ""; 	// 传真
    private String email = ""; 	// 邮箱
    private String introduction = "";

    public ACommunity(){
        super();
    }

    public ACommunity(Office office){
        this.id = office.getId();
        this.area = office.getArea();
        this.code = office.getCode();
        this.name = office.getName();
        this.remarks = office.getRemarks();
        this.address = office.getAddress();
        this.zipCode = office.getZipCode();
        this.master = office.getPrimaryPerson().getId();
        this.phone = office.getPhone();
        this.fax = office.getFax();
        this.email = office.getEmail();
        this.introduction = office.getIntroduction();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
}
